<template>
  <div class="content">
    {{ $env }}
    {{ $filters.format('的飞机') }}
  </div>
</template>

<script setup lang="ts">
import { getCurrentInstance } from 'vue';
const app = getCurrentInstance();
let str = app?.proxy?.$filters.format('的飞机')    // 会有报错提示，需要去声明
console.log(str)

</script>

<style lang="less">
.content {
  width: 300px;
  height: 300px;
  margin: 30px auto;
  border: 1px solid #ddd;
  resize: both;
  overflow: hidden;
}
.logo {
  height: 6em;
  padding: 1.5em;
  will-change: filter;
  transition: filter 300ms;
}
</style>